import datetime

info1="2021-09-06"
info2="2022-01-28"

date1 = datetime.datetime.strptime(info1, "%Y-%m-%d")#
date2 = datetime.datetime.strptime(info2, "%Y-%m-%d")
print(date1)
print(date2)
print(date2-date1)